package com.icoolkj.ms.pay.constant;

/**
 * 支付常量类
 * 
 * @author icoolkj
 */
public class PayConstant {
    
    /**
     * 支付类型
     */
    public static class PayType {
        /** 微信支付 */
        public static final String WECHAT = "WECHAT";
        /** 支付宝支付 */
        public static final String ALIPAY = "ALIPAY";
    }
    
    /**
     * 支付场景
     */
    public static class PayScene {
        /** 小程序支付 */
        public static final String JSAPI = "JSAPI";
        /** H5支付 */
        public static final String H5 = "H5";
        /** APP支付 */
        public static final String APP = "APP";
    }
    
    /**
     * 订单状态
     */
    public static class OrderStatus {
        /** 待支付 */
        public static final String WAIT_PAY = "WAIT_PAY";
        /** 支付中 */
        public static final String PAYING = "PAYING";
        /** 支付成功 */
        public static final String PAY_SUCCESS = "PAY_SUCCESS";
        /** 支付失败 */
        public static final String PAY_FAIL = "PAY_FAIL";
        /** 已关闭 */
        public static final String CLOSED = "CLOSED";
        /** 已退款 */
        public static final String REFUNDED = "REFUNDED";
    }
    
    /**
     * 业务类型
     */
    public static class BusinessType {
        /** 会员充值 */
        public static final String MEMBER_RECHARGE = "MEMBER_RECHARGE";
        /** 商品购买 */
        public static final String GOODS_PURCHASE = "GOODS_PURCHASE";
    }
    
    /**
     * 微信支付常量
     */
    public static class WechatPay {
        /** 成功返回值 */
        public static final String SUCCESS = "SUCCESS";
        /** 失败返回值 */
        public static final String FAIL = "FAIL";
    }
    
    /**
     * 支付宝支付常量
     */
    public static class AliPay {
        /** 成功返回值 */
        public static final String SUCCESS = "success";
        /** 失败返回值 */
        public static final String FAIL = "fail";
    }
} 